/*
 * Copyright (c) 2019，2039, daojian.co and/or its affiliates. All rights reserved.
 *
 */

package co.bugu.code.analysis.infra.entity;

import co.bugu.framework.db.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.gitlab4j.api.models.Commit;

import java.util.Date;

/**
 * 实体类，和数据库一一对应
 *
 *
 *
 * @author coder helper
 * @version 1.0.0
 * @createdAt 2022-11-21 11:05
 * @updatedAt 2022-11-21 11:05
 */
@ApiModel("GitLab 分支信息表")
@Data
@Entity
public class Branch {
	@ApiModelProperty("主键")
	private Long id;
	@ApiModelProperty("项目ID")
	private Long projectId;

	private String projectName;
	@ApiModelProperty("分支名称")
	private String name;
	@ApiModelProperty("是否受保护分支（0否 1是）")
	private Integer isProtected;
	@ApiModelProperty("是否为默认分支（0否 1是）")
	private Integer isDefault;
	@ApiModelProperty("是否已合并（0否 1是）")
	private Integer merged;
	@ApiModelProperty("开发者是否可合并（0否 1是）")
	private Integer developersCanMerge;
	@ApiModelProperty("开发者是否可推送（0否 1是）")
	private Integer developersCanPush;
	@ApiModelProperty("当前用户是否可推送（0否 1是）")
	private Integer canPush;
	@ApiModelProperty("GitLab 分支网页地址")
	private String webUrl;
	@ApiModelProperty("最新提交ID（SHA-1 哈希）")
	private String latestCommitId;
	@ApiModelProperty("最新提交作者")
	private String latestCommitAuthor;
	@ApiModelProperty("最新提交描述信息")
	private String latestCommitMessage;
	@ApiModelProperty("最新提交时间")
	private Date latestCommitTime;
	@ApiModelProperty("是否删除（0未删除 1已删除）")
	private Integer isDel;
	@ApiModelProperty("创建人姓名（或ID）")
	private String createUser;
	@ApiModelProperty("更新人姓名（或ID）")
	private String updateUser;
	@ApiModelProperty("创建时间")
	private Date createTime;
	@ApiModelProperty("更新时间")
	private Date updateTime;

}
